package com.woniu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;
/**
 * 商品分类实体类
 * @author 李松桦
 * @data 2023/3/10 15:06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GoodsType {
    private Integer id;
    private String typename;
    private String icon;
    private Integer parent;
    private String link;
    private String type;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private String parentName;
    private List<GoodsType> children;

    private Integer value;
    private String label;
}
